<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title><ui:insert name="title">Adding Tree Types</ui:insert></title>
    </head>
    <body>
        <h:form id="registration">
                <rich:panel header="Choose Forrest location and define your tree type">
                    <h:outputText value="Choose Forrest it belongs to: "/>
                    <rich:spacer width="20" height="10"/>
                    <rich:inplaceSelect value="#{register.selectedForrest}" defaultLabel="Choose a Forrest ...">
                        <f:selectItems value="#{register.forrests}"/>
                    </rich:inplaceSelect>
                    <rich:spacer width="20" height="10"/>
                    <h:outputText value="Name of Tree Type:"/>
                    <rich:spacer width="20" height="10"/>
                    <rich:inplaceInput value="#{register.treename}" minInputWidth="40"/>
                    <rich:spacer width="50" height="10"/>
                    <h:commandButton action="#{register.SaveResult}" value="Save New Tree Type"/>
                </rich:panel>

                <rich:panel header="Add a short description on Tree Type" bodyClass="editor">
                    <rich:editor id="editor" theme="advanced" value="#{register.description}" width="400" height="300"/>
                </rich:panel>
        </h:form>
    </body>
</html>
